Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 26 Nov 2010 12:35:53 +0000 (21:35 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 26 Nov 2010 12:38:29 +0000 (21:38 +0900)
tests/cellareascaffold.c

index 0e0d2925a135033315111c321f261ac844e7e977..fb8be468d147cc2a1cf45ab19addf20283c4f009 100644 (file)
@@ -649,12 +649,12 @@ cell_area_scaffold_size_allocate (GtkWidget           *widget,
   /* Cache the per-row sizes and allocate the context */
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     {
-      gtk_cell_area_context_allocate_width (priv->context, allocation->width - priv->indent);
+      gtk_cell_area_context_allocate (priv->context, allocation->width - priv->indent, -1);
       get_row_sizes (scaffold, priv->row_data, allocation->width - priv->indent);
     }
   else
     {
-      gtk_cell_area_context_allocate_height (priv->context, allocation->height - priv->indent);
+      gtk_cell_area_context_allocate (priv->context, -1, allocation->height - priv->indent);
       get_row_sizes (scaffold, priv->row_data, allocation->height - priv->indent);
     }
 }